package com.Cychat.commons.entity.pojo;


import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("message_chat_record")
public class MessageChatRecord {
    @Schema(description="消息ID")
    @TableId(value = "msg_id", type = IdType.AUTO)
    private Integer msgId;
    @Schema(description="发送方ID")
    private Long senderId;
    @Schema(description="接收方ID")
    private Long receiverId;
    @Schema(description="聊天类型，1为好友聊天，2为顾客-医生，3为顾客-商家")
    private Integer chatType;
    @Schema(description="消息内容")
    private String content;
    @Schema(description="内容类型，1为文字，2为图片，3为文件")
    private Integer contentType;
    @Schema(description="消息是否已读")
    private Integer isRead;
    @Schema(description="发送时间")
    private Date sendTime;
    @Schema(description="修改时间")
    private Date updateTime;
}